package com.leyou.item.service;

import com.leyou.common.pojo.PageResult;
import com.leyou.item.pojo.Brand;

import java.util.List;

/**
 * @author gsy
 * @date 2022/3/8
 * @apiNote
 */


public interface BrandService {
    PageResult<Brand> queryBrandByPage(String key, Integer page, Integer rows, String sortBy, Boolean desc);

     void saveBrand(Brand brand, List<Long> cids);

    void updateBrand(Brand brand, List<Long> cids);


    /**
     * 根据brand Id 删除中间表中的数据
     * @param bid
     */
    void deleteByBrandIdInCategoryBrand(Long bid);

    List<Brand> queryBrandByCid(Long cid);
}
